package com.ruoyi.business.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author 最爱喝兽奶
 * @create 2022/9/29
 **/
@Data
public class HomeworkStuAnswerBo extends BaseEntity {

    /**
     * id
     */
    private String id;

    /**
     * 作业id
     */
    @NotNull(groups = {EditGroup.class})
    private String homeworkId;

    /**
     * 用户id
     */
    @NotNull(groups = {EditGroup.class})
    private String userId;

    /**
     * 问题id
     */
    @NotNull(groups = {EditGroup.class})
    private String questionId;

    /**
     * 题目类型
     */
    private String type;

    /**
     * 答案
     */
    private String answer;

    /**
     * 得分
     */
    @NotNull(groups = {EditGroup.class})
    private Integer score;

    private String tempScore;

}
